import request from '@/utils/request'

  // 获取公告
export function getMessageList(query) {
    return request({
      url: '/system/message/list',
      method: 'get',
      params: query
    })
  }

  // 修改
export function updateMessage(data) {
    return request({
      url: '/system/message/update',
      method: 'post',
      data: data
    })
  }

    // 获取公告
export function getMessageDefault() {
  return request({
    url: '/system/message/front',
    method: 'get'
  })
}